[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Byte                     Numbers from 0..255                             [TP]

    The data type Byte is a subrange of the type Integer and represents
    the integers from 0 to 255. It is a Turbo Pascal extension. Variables
    of type Byte occupy one byte and are always considered to be unsigned.

    Integer and Byte values can be used interchangeably, except when
    passed as parameters.

  -------------------------------- Example ---------------------------------

           var
             Iota,Able,Fred : Byte;

           begin
             Iota :=    32;         { Iota gets 32 }
             Able :=   -32;         { Able gets 224 }
             Fred := $807F;         { Fred gets 127 }
           end.

See Also: Integer
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson